<?php
$xtpl = new XTemplate($inner_templates."home.aboutus.htm");
  

$xtpl->assign ("base_url", $base_url);
$page = $_GET['page'];
$limit = 20;
$pagegroup_size = 10;
if (!$page||$page==0){
	$page=1;
}
$offset = ($page-1)*$limit;
//////
/////////////////////////
$id=0;
if(isset($_GET['id']) && $_GET['id']>0){
    $id = $_GET['id'];
}
$title = _LB_ABOUT_US;
$rs = $DB->ZenDataList('about_us','','id_lang='.$_SESSION['ID_LANG'],'sp_pos ASC',"");
while($row = mysql_fetch_array($rs)){
        if($id == 0){
            $id = $row['sp_id'];
        }
        
        
        $row['title']=stripslashes($row['sp_name']);
        $row['sp_text']=stripslashes($row['sp_text']);
        $row['id'] = $row['sp_id'];
        $row['class'] = "leftMenu";
        $row['url_html'] = RemoveSign($row['title']).".html";
        if($id == $row['sp_id']){
            $row['class'] = "leftMenuSelected";
        }
        $xtpl->assign("list",$row);
        $xtpl->parse("center.list");
        if($id == $row['sp_id']){
            $title = $row['title'];
            $xtpl->assign("detail",$row);
            $xtpl->parse("center.detail");
        }        
}
$xtpl_main->assign ("page_title", $title);
include $rootPath.'modules/home/left.support_online.php';
?>
